package com.hl.ruoyilkshop.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 商家用户关联对象 business_user_relation
 * 
 * @author ruoyi
 * @date 2025-08-08
 */
public class BusinessUserRelation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 关联ID */
    private Long id;

    /** 商家ID */
    @Excel(name = "商家ID")
    private Long businessId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 关联类型(1-所有者,2-管理员,3-普通员工) */
    @Excel(name = "关联类型(1-所有者,2-管理员,3-普通员工)")
    private Long relationType;

    /** 是否默认店铺(0-否,1-是) */
    @Excel(name = "是否默认店铺(0-否,1-是)")
    private Long isDefault;

    /** 状态(0-禁用,1-启用) */
    @Excel(name = "状态(0-禁用,1-启用)")
    private Long status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setBusinessId(Long businessId) 
    {
        this.businessId = businessId;
    }

    public Long getBusinessId() 
    {
        return businessId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setRelationType(Long relationType) 
    {
        this.relationType = relationType;
    }

    public Long getRelationType() 
    {
        return relationType;
    }

    public void setIsDefault(Long isDefault) 
    {
        this.isDefault = isDefault;
    }

    public Long getIsDefault() 
    {
        return isDefault;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("businessId", getBusinessId())
            .append("userId", getUserId())
            .append("relationType", getRelationType())
            .append("isDefault", getIsDefault())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("status", getStatus())
            .append("remark", getRemark())
            .toString();
    }
}
